<?php

session_start();

DEFINE("HOME_PATH", "");

require_once('libs/smarty/Smarty.class.php');
include_once(HOME_PATH.'conf/conf.php');
require_once(HOME_PATH.'class/class.Entity.php');
require_once(HOME_PATH.'class/class.Topic.php');
require_once(HOME_PATH.'class/class.Comment.php');
require_once(HOME_PATH.'class/class.Message.php');
require_once(HOME_PATH.'class/class.DBManager.php');
require_once(HOME_PATH.'class/class.Utilities.php');
require_once(HOME_PATH.'class/class.User.php');
require_once(HOME_PATH.'class/class.Security.php');
//require_once('class/class.Message.php');
//require_once('class/class.User.php');
//require_once('class/class.UserLogin.php');

//require_once('class/class.Person.php');
//require_once('class/class.Review.php');
//require_once('class/class.Utilities.php');
//require_once('class/class.Subscribe.php');
//require_once('class/class.BadWords.php');
//require_once('class/class.Country.php');
//require_once('class/class.Question.php');
//require_once('class/class.Contact.php');
//require_once('class/class.EmailManager.php');

// configuracion Smarty
$smarty = new Smarty();
$smarty->template_dir = 'pages/templates';
$smarty->compile_dir = 'pages/templates_c';
$smarty->cache_dir = 'pages/cache';
$smarty->config_dir = 'pages/config';


if ($_SESSION['user_logged'] == 1) {
	$smarty->assign("user_logged", 1);
	$smarty->assign("username", $_SESSION['username']);
	$smarty->assign("userid", $_SESSION['userid']);
	$smarty->assign("screenname", $_SESSION['screenname']);
}

$smarty->config_load('en.conf');